<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html dir="ltr" lang="en-gb">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="imagetoolbar" content="no">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>群界面</title>
<link type="text/css" rel="Stylesheet"
	href="/PCT/StyleAll/styleLogIn.css" />
<link type="text/css" rel="Stylesheet" href="/PCT/StyleAll/styleAll.css" />
<style type="text/css">
.STYLE1 {
	font-size: 36px
}
</style>
</head>

<body class="browser-webkit can-transform has-shadows transform">
	<div class="header">
		<img src="/PCT/image/Logo Small.png" width=1000px height=50px
			alt="Logo Small">
	</div>
	<p>&nbsp;</p>
	<div class="page">
		<div id="page-header">
			<div id="search-box">
				<s:if test="#session.status.currentUser.userType == 1">病友：</s:if>
				<s:elseif test="#session.status.currentUser.userType == 2">医生：</s:elseif>
				<s:elseif test="#session.status.currentUser.userType == 3">管理员：</s:elseif>
				<a><s:property value="#session.status.currentUser.username" /></a>
				等级： <a><s:property value="#session.status.currentUser.rank" /></a>
				<img src="/PCT/image/2.png" width=15px height=15px> <a
					href=" <s:url action='logout' namespace='/secure'/>">退出</a>
			</div>
			<s:if test="#session.status.currentUser.userType != 0">


				<a
					href="<s:url action='redirectResult' namespace='/public'>
							<s:param name='redirectType' value='5' />
						 </s:url>"
					class="button2">账户管理</a>
			</s:if>
			<!-- <a href="/PCT/Account/manageAccount.jsp"><input type="submit" name="submit" value="账户管理" class="button2"></a> -->
			<a
				href="<s:url action='redirectResult' namespace='/public'>
							<s:param name='redirectType' value='10' />
						 </s:url>"
				class="button2">我的群</a>
			<form id="search" name="search" action="/PCT/public/search.action"
				style="display: inline">
				关键字：<input name="target" type="text" /> <select name="searchType">
					<option value="post">搜索帖子</option>
					<option value="topic">搜索主题</option>
					<option value="group">搜索群</option>
				</select> <input type="submit" value="GO" class="button2" />
			</form>

		</div>
		<div id="page-body">
			<div class="topic-actions">
				<div>
					<table width="100%" border="0">
						<tr>
							<td width="80%">群名：<s:property
									value="#session.status.currentGroupName" /></td>
							<td width="10%">
								<s:if test="#session.status.joined" >
									<div class="post-icon" title="发表新主题">
										<s:if test="#session.status.currentUser.userType != 0">
											<a
												href="<s:url action='redirectResult' namespace='/public'>
											<s:param name='redirectType' value='4' />
										 </s:url>"
												class="button2">发表新主题</a>
										</s:if>
									</div>
								</s:if>
							</td>
							<td width="10%">
								<div class="post-icon" title="加入此群">
									<a
										href="<s:url action='joinGroup' namespace='/public'>
											<s:param name='currentGroupName' value='#session.status.currentGroupName'></s:param>
											<s:param name='userID' value='#session.status.currentUser.username' />
											</s:url>"
										class="button2">加入此群</a>
								</div>
							</td>
						</tr>
					</table>
				</div>

				<div class="forumbg">
					<div class="inner">
						<span class="corners-top"><span></span></span>
						<ul class="topiclist">
							<li class="header">
								<dl class="icon">
									<dt>主题</dt>
									<dd class="posts">作者</dd>
									<dd class="views">回复数</dd>
									<dd class="lastpost">
										<span>最后回复</span>
									</dd>
								</dl>
							</li>
						</ul>
						<s:iterator value="#session.status.relatedTopics">
							<ul class="topiclist topics">
								<li class="row bg2 sticky unread">
									<dl class="icon"
										style="background-image: url(./styles/art_phantom/imageset/sticky_unread.png); background-repeat: no-repeat;">
										<s:url action="accessPosts" var="selectedUrl"
											namespace="/public">
											<s:param name="selectedTopicID" value="%{topicID}" />
										</s:url>
										<dt title="未读帖子">
											<a href='<s:property value="#selectedUrl" />'> <s:property
													value="title" /></a>
										</dt>
										<dd class="posts">
											<s:property value="username" />
											<dfn>回复</dfn>
										</dd>
										<dd class="views">
											<s:property value="postNumber" />
											<dfn>点击</dfn>
										</dd>
										<dd class="lastpost">
											<span><br> <s:property value="topicTime" /></span>
										</dd>
									</dl>
								</li>
							</ul>
						</s:iterator>
						<span class="corners-bottom"><span></span></span>
					</div>
				</div>
				<div>
					<a href='<s:url action="firstPageForTopic" namespace="/public">
							<s:param name="type">1</s:param>
							</s:url>'>
					<input type="submit" name="firstpage" value="首页" class="button2"></a>
					<a href='<s:url action="previousPageForTopic" namespace="/public">
							<s:param name="type">1</s:param>
							</s:url>'>
					<input type="submit" name="page_up" value="上一页" class="button2"></a>
					<a href='<s:url action="nextPageForTopic" namespace="/public">
							<s:param name="type">1</s:param>
							</s:url>'>
					<input type="submit" name="page_down" value="下一页" class="button2"></a>
					<a href='<s:url action="lastPageForTopic" namespace="/public">
							<s:param name="type">1</s:param>
							</s:url>'>
					<input type="submit" name="lastpage" value="尾页" class="button2"></a>
				</div>
				<form method="post" id="jumpbox"
					action="http://demo.phpbb3styles.net/viewforum.php?style=704"
					onSubmit="if(document.jumpbox.f.value == -1){return false;}">
				</form>
				<div class="clear"></div>
			</div>
		</div>
	</div>
	<div class="footer">
		<div class="copyright">
			<p class="copy-left">上海交通大学 软件学院</p>
			<p class="copy-right">
				设计风格 <a href=" http://www.artodia.com/">Artodia</a> 。
			</p>
		</div>
	</div>
</body>

</html>
